//
//  UIImageView+CornerRadius.h
//  MyPractise
//
//  Created by lzy on 16/3/1.
//  Copyright © 2016年 lzy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIImageView (CornerRadius)

//UIImageView *imageView = [[UIImageView alloc] initWithCornerRadiusAdvance:6.0f rectCornerType:UIRectCornerAllCorners];
/**
 UIImageView指定半径圆角 方式1

 @param cornerRadius 圆角半径
 @param rectCornerType 圆角类型
 @return UIImageView
 */
- (instancetype)initWithCornerRadiusAdvance:(CGFloat)cornerRadius rectCornerType:(UIRectCorner)rectCornerType;

/**
 UIImageView指定半径圆角 方式2
 
 @param cornerRadius 圆角半径
 @param rectCornerType 圆角类型
 */
//[imageView zy_cornerRadiusAdvance:6.0f rectCornerType:UIRectCornerAllCorners];
- (void)zy_cornerRadiusAdvance:(CGFloat)cornerRadius rectCornerType:(UIRectCorner)rectCornerType;

/*创建圆形头像 方式1*/
//UIImageView *imageView = [[UIImageView alloc] initWithRoundingRectImageView];
- (instancetype)initWithRoundingRectImageView;
/*创建圆形头像方式2 */
//[imageView zy_cornerRadiusRoundingRect];
- (void)zy_cornerRadiusRoundingRect;


/**
 给图片添加边框

 @param width 边框宽度
 @param color 边框宽度颜色
 */
//[imageView zy_attachBorderWidth:1.f color:[UIColor redColor]];
- (void)zy_attachBorderWidth:(CGFloat)width color:(UIColor *)color;

@end
